package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.AgedmallAnnouncerLogMapper;
import org.linlinjava.litemall.db.domain.AgedmallAnnouncerLog;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.time.LocalDateTime;

@Service
public class AgedmallAnnouncerLogService {
    @Resource
    private AgedmallAnnouncerLogMapper agedmallAnnouncerLogMapper;

    public void add(AgedmallAnnouncerLog agedmallAnnouncerLog) {
        agedmallAnnouncerLog.setAddTime(LocalDateTime.now());
        agedmallAnnouncerLog.setUpdateTime(LocalDateTime.now());
        agedmallAnnouncerLogMapper.insertSelective(agedmallAnnouncerLog);
    }
}
